<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>编辑全局设定</title>
<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    input.text-css {
        width: 580px;
        height: 36px;
        line-height: 30px;
        color: rgb(91, 91, 91);
        box-shadow: rgb(248, 248, 248) 2px 2px 9px;
        padding: 0px 10px;
        border-radius: 3px;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(203, 203, 203);
        border-image: initial;
    }
</style>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 编辑全局设定
	</div>
	<form id="inputForm" action="update.htm" method="post">
		<input type="hidden" name="id" value="${globalConfig.id}" />
		<table class="input">
			<tr>
				<th>
					<span class="requiredField">*</span>注册选择标签:
				</th>
				<td>
					<input type="text" name="tag" class="text-css" value="${tag}" maxlength="480" placeholder="多个标签请以!!隔开，否则默认为一个标签" title="${message("admin.tag.separator")}"/>
				</td>
			</tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>直播按钮:
                </th>
                <td>
                    <label><input type="radio" name="onOff" [#if globalConfig.onOff==true] checked [/#if] value="true"/>开启</label>
                    <label><input type="radio" name="onOff" [#if globalConfig.onOff==false] checked [/#if]  value="false"/>关闭</label>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>是否显示支付页面:
                </th>
                <td>
                    <label><input type="radio" name="payShow" [#if globalConfig.payShow==true] checked [/#if] value="true"/>显示</label>
                    <label><input type="radio" name="payShow" [#if globalConfig.payShow==false] checked [/#if]  value="false"/>隐藏</label>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>注册赠送积分:
                </th>
                <td>
                    <input type="text" name="point" class="text-css" value="${globalConfig.point}"/>
                </td>
            </tr>
            <tr>
                <th>
                    积分转换余额比例(积分=金额*比例):
                </th>
                [#--<td>--]
                    [#--<input readonly="readonly" type="text" name="percentage" class="text-css" value="${globalConfig.percentage}" title="${message("admin.percentage")}"/>--]
                [#--</td>--]
                <td>
                    <input type="text" name="percentage" class="text-css" value="${globalConfig.percentage}"/>
                </td>
            </tr>
            <tr>
                <th>
                    请选择要显示充值页面的金额
                </th>
                <td>
                    <input type="text" name="percentage" class="text-css" value="${globalConfig.percentage}"/>
                </td>
            </tr>
            <tr>
                <th>
                    请选择要显示充值页面的金额
                </th>
                <td>
                    <input type="text" name="percentage" class="text-css" value="${globalConfig.percentage}"/>
                </td>
            </tr>
            [#--<tr>--]
                [#--<th>--]
                    [#--<span class="requiredField">*</span>直播公告:--]
                [#--</th>--]
                [#--<td>--]
                    [#--<input type="text" name="notice" class="text-css" value="${globalConfig.notice}"/>--]
                [#--</td>--]
            [#--</tr>--]
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
				</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
    $().ready(function() {

        var $inputForm = $("#inputForm");
        var $browserButton = $("#browserButton");

	[@flash_message /]

        $browserButton.browser();

        // 表单验证
        $inputForm.validate({
            rules: {
                tag: "required",
                point:"required",
                percentage:{
                    min:1,
                },
            }
        });

    });
</script>
</html>
